Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email fix #159

Merged
merged 4 commits into from
Apr 3, 2019
Merged

Email fix #159

merged 4 commits into from
Apr 3, 2019

Conversation

kravietz
Copy link
Contributor

No description provided.

The `ss` program is now the official replacement for `netstat` which
is deprecated in most Linux distributions. Also replace the messy sed
rules which do not work on all versions with a clean command-line that
just displays the key information that does **not** change on every
command run (e.g. PID) resulting in false positives.
Tell `df` not to report on virtual filesystems such as `squashfs` (used
by `snapd` and always at 100%), `tmpfs` (memory-only) and `devtmpfs`
(used by `udev`)
Without this flag the agent will not accept any system check
commands (`command` and `full_command`) configured in the Wazuh
Manager settings to cascade down to agents.
There's no need for a complicated if..then condition here since the
value is expected to be yes/no only
@manuasir
Copy link
Contributor

Hello @kravietz ,

Thank you for your amazing work, your contributions are very valuable for us. Could you please write here a description of your PR's functionality? It'd be needed in order to test it properly.

Cheers

Copy link
Contributor Author

@kravietz kravietz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manuasir

  • The df change suppresses changes in disk space display on pseudo-devices which are always 100% full such as squashfs or which are dynamically allocated such as tmpfs
  • Netstat change uses ss instead of netstat which is now deprecated and simplifies the command significantly to suppress information that changes frequently (buffer sizes, PID etc)
  • logcollector change allows the agents to receive commands for execution from master (such as netstat)
  • Email notification change simplifies the template to simply embed the variable value

@manuasir
Copy link
Contributor

Thanks @kravietz ! We will review it ASAP.

Cheers

@manuasir manuasir changed the base branch from master to 3.9 April 3, 2019 13:01
@manuasir manuasir self-requested a review April 3, 2019 13:02
@manuasir manuasir merged commit deaffd9 into wazuh:3.9 Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants